<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>闹钟</title>
     <link type="text/css" rel="stylesheet" href="css/bootstrap.min.css"/>
     <link type="text/css" rel="stylesheet" href="css/bootstrap-responsive.min.css"/>
     <link type="text/css" rel="stylesheet" href="css/bootstrap-datetimepicker.min.css"/>
     <link type="text/css" rel="stylesheet" href="css/common.css"/>
     <link type="text/css" rel="stylesheet" href="css/promptMessage.css"/>
     <script type='text/javascript' src='js/jquery-1.10.2.min.js'></script>
     <script type='text/javascript' src='js/bootstrap.min.js'></script>
     <script type='text/javascript' src='js/bootstrap-datetimepicker.js'></script>
     <script type='text/javascript' src='js/bootstrap-datetimepicker.zh-CN.js'></script>
     <script type='text/javascript' src='js/check.js'></script>
 	 <script type='text/javascript' src='js/time.js'></script>
</head>
<body onload="disptime();">
	<div class="top"></div>
        <div class="part">
            <h4 class="partTitle"><strong>请选择当天/每天</strong></h4>
               <form class="form-horizontal" name="myform" action='alarmColock.html' method='post'>
               		 <input type="text" id="alarmClock" name="alarmClock" value="<%=session.getAttribute("alarmClock")%>" hidden="hidden">
               		  <div class="form-group">
                           <label for="myclock" class="col-sm-1 control-label">系统时间为:</label>
                           <div  class="col-sm-1 input-group">
                                <input name="myclock" id="myclock" type="text" value="" size="25" style="border:0px">
                           </div>
                      </div>
                      <div class="form-group">
                          <button type="button" class="btn btn-primary" onclick="theDay();">
                                <span  aria-hidden="true"> </span>当天
                          </button>
                          <button type="button" class="btn btn-primary" onclick="everyDay();">
                                <span  aria-hidden="true"> </span>每天
                          </button>
                      </div>
                      <div class="form-group">
                           <button type="button" class="btn btn-danger" onclick = "undo();">
                                <span  aria-hidden="true"> </span>取消闹钟
                           </button>
                      </div>
                </form>
                <!-- 隐藏框 -->
        <div aria-hidden="true" aria-labelledby="myModalLabel" data-backdrop="static" role="dialog" tabindex="-1"
             id="myMessageModal" class="modal fade bs-example-modal-sm">
                <div class="modal-dialog modal-sm" role="document">
                        <div class="modal-content">
                                <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                                <span aria-hidden="true" id="close">&times;</span>
                                        </button>
                                        <h4 class="modal-title" id="myModalLabel"><strong>信息</strong></h4>
                                </div>
                                <div class="modal-body">
                                        <form>
                                                <div class="form-group">
                                                        <h4 id="messageContent"></h4>
                                                </div>
                                        </form>
                                </div>
                                <div class="modal-footer">
                                        <div id="model2">
                                                <button type="button" class="btn btn-primary" onclick="theDay();">当天</button>
                                                <button type="button" class="btn btn-danger" onclick="everyDay();">每天</button>
                                        </div>
                                </div>
                        </div>
                </div>
        </div>
  <!-- 错误弹出框 -->      
         <div aria-hidden="true" aria-labelledby="myModalLabel" data-backdrop="static" role="dialog" tabindex="-1"
             id="myMessageModal1" class="modal fade bs-example-modal-sm">
                <div class="modal-dialog modal-sm" role="document">
                        <div class="modal-content">
                                <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                                <span aria-hidden="true" id="close">&times;</span>
                                        </button>
                                        <h4 class="modal-title" id="myModalLabel"><strong>信息</strong></h4>
                                </div>
                                <div class="modal-body">
                                        <form>
                                                <div class="form-group">
                                                        <h4 id="messageContent1"></h4>
                                                </div>
                                        </form>
                                </div>
                                <div class="modal-footer">
                                        <div id="model2">
                                                <button type="button" class="btn btn-primary" data-dismiss="modal">确定</button>
                                        </div>
                                </div>
                        </div>
                </div>
        </div>
        
        <div aria-hidden="true" aria-labelledby="myModalLabel" data-backdrop="static" role="dialog" tabindex="-1"
             id="myMessageModal2" class="modal fade bs-example-modal-sm">
                <div class="modal-dialog modal-sm" role="document">
                        <div class="modal-content">
                                <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                                <span aria-hidden="true" id="close">&times;</span>
                                        </button>
                                        <h4 class="modal-title" id="myModalLabel"><strong>信息</strong></h4>
                                </div>
                                <div class="modal-body">
                                        <form>
                                                <div class="form-group">
                                                        <h4 id="messageContent2"></h4>
                                                </div>
                                        </form>
                                </div>
                                <div class="modal-footer">
                                        <div id="model2">
                                                <button type="button" class="btn btn-primary" onclick="sure1();">确定</button>
                                                <button type="button" class="btn btn-danger" data-dismiss="modal" >取消</button>
                                        </div>
                                </div>
                        </div>
                </div>
        </div>
        <div aria-hidden="true" aria-labelledby="myModalLabel" data-backdrop="static" role="dialog" tabindex="-1"
             id="myMessageModal3" class="modal fade bs-example-modal-sm">
                <div class="modal-dialog modal-sm" role="document">
                        <div class="modal-content">
                                <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                                                <span aria-hidden="true" id="close">&times;</span>
                                        </button>
                                        <h4 class="modal-title" id="myModalLabel"><strong>信息</strong></h4>
                                </div>
                                <div class="modal-body">
                                        <form>
                                                <div class="form-group">
                                                        <h4 id="messageContent3"></h4>
                                                </div>
                                        </form>
                                </div>
                                <div class="modal-footer">
                                        <div id="model2">
                                                <button type="submit" class="btn btn-primary" >确定</button>
                                                <button type="button" class="btn btn-danger" data-dismiss="modal" >取消</button>
                                        </div>
                                </div>
                        </div>
                </div>
        </div>
        </div>
</body>
</html>